package cn.yunyichina.utils.commons;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;

/**
 * Created by Lullaby on 2016/10/25.
 */
public class NumberUtil {

    private static final DateFormat formatter = new SimpleDateFormat("yyyyMMddHHmmssSSS");

    /**
     * 构建云医支付流水号
     *
     * @return
     */
    public static String buildPaymentDealNo() {
        return formatter.format(
                Calendar.getInstance().getTime()
        ).concat(
                RandomUtil.getRandomNumberChar(7)
        );
    }

}
